<div class="item_photo">
  <div class="image_outer">
    <div class="image_middle">
      <div class="image_inner">
        <a id="photo_<?php echo $photo->idPhoto; ?>" class="fancy_photo" rel="photo" title="<?php echo $photo->idPhoto; ?>" href="<?php echo WebRoot.$photo->FileUNCPath; ?>">
          <img class="<?php echo $photo->OrientationString;?>" src="<?php echo WebRoot.$photo->ThumbnailUNC;?>" alt="<?php echo $photo->Name;?>" />                              
        </a><?php if ($isOwner) { ?><a href="controllers/deletePhoto.php?idPhoto=<?php echo $photo->idPhoto ?>"<span class="remove-icon"></a></span><?php } ?>
      </div>    
    </div>  
  </div>
  <div class="image_name"><?php echo $photo->Name;?></div>
</div> 
<!--
<div class="tooltip_album">
  <img src="<?php echo WebRoot.$photo->ThumbnailUNC;?>" alt="<?php echo $photo->Name;?>" />
</div>
-->
<?php //echo WebRoot.$config['Picture']['path'].$photo->FileUNCPath;?>
<?php // echo WebRoot."photo.php/".$photo->idPhoto; ?>
<?php // echo WebRoot.$photo->FileUNCPath; ?>